using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using UMEVOR.BLL;
using UMEVOR.DTO;
using UMEVOR.VO;

public partial class Portal_historico : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack && !this.IsCallback)
        {
            if (!Session["id"].ToString().Equals(""))
            {
                int codigo = Int32.Parse(Session["id"].ToString());

                BLLT_CASA_ESPIRITA bllCasaEspirita = new BLLT_CASA_ESPIRITA();
                T_CASA_ESPIRITA casaEspirita = bllCasaEspirita.obterPorPK(codigo);

                if (casaEspirita.TX_HISTORICO.Equals(""))
                    dConteudo.InnerHtml = "<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>";
                else
                    dConteudo.InnerHtml = casaEspirita.TX_HISTORICO.Replace("#", "<BR>");

                lblCasaEspirita.Text = casaEspirita.TX_NOME_INSTITUICAO;
            }
        }    
    }
}
